


<!DOCTYPE html>
<html id="htmlId">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=GBK"> 
  <title>Coverage Report > TextGraphProcessorTest</title>
  <style type="text/css">
    @import "../../css/coverage.css";
    @import "../../css/idea.min.css";
  </style>
  <script type="text/javascript" src="../../js/highlight.min.js"></script>
  <script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>

<body>
<div class="content">
<div class="breadCrumbs">
Current scope:     <a href="../../index.html">all classes</a>
    <span class="separator">|</span>
    <a href="../index.html">&lt;empty package name&gt;</a>
</div>

<h1>Coverage Summary for Class: TextGraphProcessorTest (&lt;empty package name&gt;)</h1>

<table class="coverageStats">
<tr>
  <th class="name">Class</th>
<th class="coverageStat 
">
  Class, %
</th>
<th class="coverageStat 
">
  Method, %
</th>
<th class="coverageStat 
">
  Line, %
</th>
</tr>
<tr>
  <td class="name">TextGraphProcessorTest</td>
<td class="coverageStat">
  <span class="percent">
    0%
  </span>
  <span class="absValue">
    (0/1)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    0%
  </span>
  <span class="absValue">
    (0/10)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    0%
  </span>
  <span class="absValue">
    (0/27)
  </span>
</td>
</tr>

</table>

<br/>
<br/>


<pre>
<code class="sourceCode" id="sourceCode">&nbsp;import org.junit.Before;
&nbsp;import org.junit.Test;
&nbsp;import static org.junit.Assert.*;
&nbsp;
<b class="nc">&nbsp;public class TextGraphProcessorTest {</b>
&nbsp;
&nbsp;    private TextGraphProcessor processor;
&nbsp;
&nbsp;    @Before
&nbsp;    public void setUp() throws Exception {
<b class="nc">&nbsp;        processor = new TextGraphProcessor(&quot;Easy_Test.txt&quot;);</b>
<b class="nc">&nbsp;        processor.readTextAndBuildGraph();</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithBridgeWords() {
<b class="nc">&nbsp;        String input = &quot;the scientist analyzed data&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;the scientist carefully analyzed the data&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithoutBridgeWords() {
<b class="nc">&nbsp;        String input = &quot;team requested more&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;team requested more&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithEmptyInput() {
<b class="nc">&nbsp;        String input = &quot;&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithSingleWord() {
<b class="nc">&nbsp;        String input = &quot;scientist&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;scientist&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithNonAlphabeticCharacters() {
<b class="nc">&nbsp;        String input = &quot;the scientist! analyzed, the data.&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;the scientist carefully analyzed the data&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithOnlyNonAlphabeticCharacters() {
<b class="nc">&nbsp;        String input = &quot;!@#$%^&amp;*()&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithUppercaseInput() {
<b class="nc">&nbsp;        String input = &quot;THE SCIENTIST ANALYZED DATA&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;the scientist carefully analyzed the data&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;
&nbsp;    @Test
&nbsp;    public void testGenerateNewTextWithLongInput() {
<b class="nc">&nbsp;        String input = &quot;the scientist carefully analyzed the data wrote a detailed report and shared the report with the team&quot;;</b>
<b class="nc">&nbsp;        String expected = &quot;the scientist carefully analyzed the data wrote a detailed report and shared the report with the team&quot;;</b>
<b class="nc">&nbsp;        assertEquals(expected, processor.generateNewText(input));</b>
&nbsp;    }
&nbsp;}
</code>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @end
    @*/

    if (!msie || msie && msie9) {
      hljs.highlightAll()
      hljs.initLineNumbersOnLoad();
    }
})();
</script>

<div class="footer">
    
    <div style="float:right;">generated on 2025-05-28 18:34</div>
</div>
</body>
</html>
